﻿#ifndef _DEBUG
//windows平台去掉黑窗口
#pragma comment(linker,"/subSystem:windows /entry:mainCRTStartup")
#endif // !_DEBUG
#include "MainWindow.h"
#include <QApplication>
using namespace std;


int main(int argc, char* argv[])
{
	/*QTextCodec* codec = QTextCodec::codecForName("UTF-8");
	QTextCodec::setCodecForLocale(codec);*/
	QApplication a(argc, argv);
	MainWindow w;
	w.show();
	return a.exec();
}
//int main()
//{
	//FindFund find;
	//cout << find.FindFundName() << endl;//联网查询全部基金的基本信息(名字-代码-类型)
	//cout << find.WriteFundName("out/FundName.csv") << endl;//将上条查询结果保存到本地
	//find.ReadFundName("out/FundName.csv");
	//find.whileFundName();//遍历基金详情
	//cout<<find.FundName(5728);//获取指定编号的基金详情
	/*find.FindHistoryAll(11,1000);
	find.whileFundHistory(11);*/
	//find.WriteHistory(5827,"out");
	//find.whileFundHistory(12);
	
	/*int nSel = 0;
	cin >> nSel;
	cout << "程序开始" << endl;
	find.WriteHistoryAll("out", FindFund::FindCode(nSel));*/

	/*find.ReadHistory("out/000001.csv");
	find.whileFundHistory(1);*/
	/*return 0;

}*/